import pygame
from BaseBullet import *
'''敌机子弹'''
class EnemyBullet(BaseBullet):

  def __init__(self, screen, plane):
    super().__init__(screen, plane.x + 24, plane.y + 40, 'src/assets/images/bullet1.png')
    # self.x = plane.x + 24
    # self.y = plane.y + 40
    # self.screen = screen
    # self.plane = plane
    # self.image = pygame.image.load('src/assets/images/bullet1.png')


  # def display(self):
  #   self.screen.blit(self.image, (self.x, self.y))

  def move(self):
    self.y += 10

  def judge(self):
    return self.y > 852